/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author allam
 */
@Stateless
public class NotiziaFacade extends AbstractFacade<Notizia> implements NotiziaFacadeLocal {
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
    //@PersistenceContext(unitName = "EnterpriseApplication3-ejbPU")
    @PersistenceContext(unitName = "webApplication-ejbPU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public NotiziaFacade() {
        super(Notizia.class);
    }
    


}
